<?php

namespace catchAdmin\phone\controller;

use catcher\CatchResponse;

class ZhaoPin extends LoginCatchController
{

    private $model = null;


    public function __construct()
    {
        parent::__construct();

        $this->model = (new \catchAdmin\phone\model\ZhaoPin());
    }


    /**
     * 保存
     */
    public function save()
    {
        $param = request()->param();

        return CatchResponse::success($this->model->saveData($param));
    }


    /**
     * 停止招聘
     */
    public function stop()
    {
        $param = request()->param();

        return CatchResponse::success($this->model->stop($param));
    }

    ############################################################################################


    /**
     * 列表
     */
    public function index()
    {
        $param = request()->param();

        return CatchResponse::success($this->model->index($param));
    }


    /**
     * 详情
     */
    public function read()
    {
        $param = request()->param();

        return CatchResponse::success($this->model->read($param));
    }

}
